<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        //反转数组
        let a=[1,2,3]
        a.reverse()
        console.log(a)
        //数组排序
        let b=['C','A','B','D']
        b.sort()
        console.log(b)
        //数组转为字符串
        let c=[1,2,3]
        console.log(c.join())
        //数组拼接
        let d=[1,2,3]
       //数组转为字符串
        console.log( d.concat([1,3]))
        let e=[1,2,3]
        console.log(e.toString())
    </script>
</body>
</html>